<?php

use yii\grid\GridView;
use yii\bootstrap\Html;
use yii\widgets\ListView;
$this->title = Yii::t('app','搜索').'-'.$this->params['keyword'];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-index">
    <div class="body-content">
        <div class="row">

            <div class="col-lg-8">
                <div class="panel panel-default panel-<?= \yii\helpers\ArrayHelper::getValue($this->params, 'themeColor') ?>">
                    <div class="panel-heading"><h3 class="panel-title"><?=Yii::t('app','搜索')?>-<?= $this->params['keyword'] ?></h3></div>

                    <div class="panel-body">
						<?= ListView::widget([
									'id'=>'docList',
									'dataProvider'=>$dataProvider,
									'itemView'=>'_listitem',//子视图,显示一篇文章的标题等内容.

							])?>
                    </div>
                </div>
            </div>
	<div class="col-md-4">
	<h3>最新词条</h3>
     <?= RctDocWidget::widget(['recentDocs'=>$recentDocs])?>
	 </div>
	 <div class="col-md-4" >
	 <h3>其他</h3>
	 			<div class="searchbox">
				<ul class="list-group">
				  <li class="list-group-item"style="background:#303030 ;color:#FFF">
				  <h4><span class="glyphicon glyphicon-search" aria-hidden="true"></span> 查找词条</h4>
				  </li>
				  <li class="list-group-item"style="background:#303030 ;color:#FFF">				  
					  <form class="form-inline" action="index.php?r=doc/index" id="w0" method="get">
						  <div class="form-group">
						    <input type="text" class="form-control" name="DocSearch[title]" id="w0input" placeholder="按标题">
						  </div>
						  <button type="submit" class="btn btn-default">搜索</button>
					</form>
				  
				  </li>
				</ul>			
			</div>
			
			<div class="tagcloudbox">
				<ul class="list-group">
				  <li class="list-group-item"style="background:#303030 ;color:#FFF">
				  <h4><span class="glyphicon glyphicon-tags" aria-hidden="true"></span> 热门关键字</h4>
				  </li>
				  <li class="list-group-item"style="background:#303030 ;color:#FFF">
		
					<?= HotWordsWidget::widget(['words'=>$words])?>
				  </li>
				</ul>			
			</div>
			
			
			<div class="commentbox">
				<ul class="list-group">
				  <li class="list-group-item"style="background:#303030 ;color:#FFF">
				  <h4><span class="glyphicon glyphicon-glass" aria-hidden="true"></span> 用户贡献榜</h4>
				  </li>
				  <li class="list-group-item"style="background:#303030 ;color:#FFF">
		
					<?= RctCreditdetailWidget::widget(['recentCreditdetails'=>$recentCreditdetails])?>
				  </li>
				</ul>			
			</div>
	 </div>			
        </div>
    </div>
</div>